package framework.customer;

import framework.interfaces.IAddress;
import framework.interfaces.ICompany;

public class Company extends Customer implements ICompany {

	private int numOfEmps;

	public Company(String name, IAddress address, int numOfEmps) {
		super(name, address);
		this.numOfEmps = numOfEmps;
	}

	@Override
	public String toString() {
		StringBuilder str = new StringBuilder();
		str.append("Name: " + name);
		str.append(" Street: " + address.getStreet());
		str.append(" City: " + address.getCity());
		str.append(" State: " + address.getState());
		str.append(" Zip: " + address.getZipCode());
		str.append(" Employees: " + numOfEmps);
		str.append(" eMail: " + address.getEmail());
		return str.toString();
	}

	@Override
	public int getNumofEmps() {
		return numOfEmps;
	}
}
